package cc.lj.internal.api.coupons.dto.command;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 电子券结算查询分摊入参
 * @author liangxifeng
 * @date 2022-01-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("电子券结算分摊入参")
@Validated
public class CouponsSettlementApiCommand {
    @ApiModelProperty(value = "电子券批次表主键")
    @Min(value=1,message = "电子券批次表主键必须>=1的数字")
    private Integer batchId;

    @ApiModelProperty(value = "商户展位号")
    @NotBlank(message = "商户展位号不可为空")
    private String merchantShow;
}
